import React from 'react';

import Model from '../components/model';
import Button from '../components/button';

import YmtApi from 'YmtApi';

const searchParams = YmtApi.utils.getUrlObj();

let RuleDialog = React.createClass({
	getInitialState(){
		return {}
	},
	render (){ 
		const { show,onHideDialog,content }  = this.props;
		return (
			<Model show={ show }>
				<div className="model-dialog bottom bottom-form-dialog rule-dailog">
					<div className="model-content">
						<div className="model-dialog-hd">
							活动规则
							<span className="close-btn pull-right"  
							      onClick={onHideDialog}>X</span>
						</div>
						<div className="model-dialog-bd" dangerouslySetInnerHTML={{__html:content}}/>
						<div className="model-dialog-ft">
							<Button className={"btn btn-full btn-primary confirm-btn"}
									onClick={onHideDialog}>关闭</Button>
						</div>
					</div>
				</div>
			</Model>
		)
	}
});

export default RuleDialog